package com.tf.integrated.service.impl;

import com.tf.integrated.dao.DeviceinfoDao;
import com.tf.integrated.entity.DeviceinfoEntity;
import com.tf.integrated.service.DeviceinfoService;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;


@Service("deviceinfoService")
public class DeviceinfoServiceImpl extends ServiceImpl<DeviceinfoDao, DeviceinfoEntity> implements DeviceinfoService<DeviceinfoEntity>
{
    public PageUtils<DeviceinfoEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<DeviceinfoEntity> ew = new EntityWrapperHandle<DeviceinfoEntity>(params);
        Page<DeviceinfoEntity> page = this.selectPage(new Query<DeviceinfoEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<DeviceinfoEntity>(page);
    }

    public List<DeviceinfoEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
